import request from '@/utils/request'

export function getDiscountPage(data){
    return request({
        url: '/coupon/getDiscountPage',
        method: 'post',
        data
    })
}

export function getDiscountInfo(data){
    return request({
        url:'/coupon/getDiscountInfo',
        method: 'post',
        data
    })
}


export function addToDiscount(data){
    return request({
        url:'/coupon/addToDiscount',
        method: 'post',
        data
    })
}

export function deleteDiscount(data){
    return request({
        url:'/coupon/deleteDiscount',
        method: 'post',
        data
    })
}

export function addDiscountInfo(data){
    return request({
        url:'/coupon/addDiscountInfo',
        method: 'post',
        data
    })
}
